Search for has

  1. Search 7.x for has
  2. Search 9.5.x for has
  3. Search 8.9.x for has
  4. Search 10.3.x for has
  5. Other projects
Title Object type File name Summary
ContentEntityBase::hasField function core/lib/Drupal/Core/Entity/ContentEntityBase.php Determines whether the entity has a field with the given name.
ContentEntityBase::hasTranslation function core/lib/Drupal/Core/Entity/ContentEntityBase.php Checks there is a translation for the given language code.
ContentEntityBase::hasTranslationChanges function core/lib/Drupal/Core/Entity/ContentEntityBase.php Determines if the current translation of the entity has unsaved changes.
ContentEntityHasChangesTest class core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Tests ContentEntityBase::hasTranslationChanges().
ContentEntityHasChangesTest.php file core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php
ContentEntityHasChangesTest::$bundle property core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Bundle of entity.
ContentEntityHasChangesTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Modules to install.
ContentEntityHasChangesTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php
ContentEntityHasChangesTest::testHasTranslationChanges function core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php Tests the correct functionality of the hasTranslationChanges() function.
ContentEntityNullStorage::has function core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php Determines if this entity already exists in storage.
ContentEntityNullStorage::hasData function core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php Determines if the storage contains any data.
ContentEntityStorageBase::hasFieldValueChanged function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Checks whether the field values changed compared to the original entity.
ContentEntityType::hasRevisionMetadataKey function core/lib/Drupal/Core/Entity/ContentEntityType.php Indicates if a given entity revision metadata key exists.
ContentEntityTypeInterface::hasRevisionMetadataKey function core/lib/Drupal/Core/Entity/ContentEntityTypeInterface.php Indicates if a given entity revision metadata key exists.
ContentLanguageSettingsValidationTest::$hasLabel property core/modules/language/tests/src/Kernel/ContentLanguageSettingsValidationTest.php Whether a config entity of this type has a label.
ContentModeration::workflowHasData function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php Determines if the workflow is being has data associated with it.
ContentModeration::workflowStateHasData function core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php Determines if the workflow state has data associated with it.
ContentTranslationHandler::hasAuthor function core/modules/content_translation/src/ContentTranslationHandler.php Checks whether the entity type supports author natively.
ContentTranslationHandler::hasChangedTime function core/modules/content_translation/src/ContentTranslationHandler.php Checks whether the entity type supports modification time natively.
ContentTranslationHandler::hasCreatedTime function core/modules/content_translation/src/ContentTranslationHandler.php Checks whether the entity type supports creation time natively.
ContentTranslationHandler::hasPublishedStatus function core/modules/content_translation/src/ContentTranslationHandler.php Checks whether the entity type supports published status natively.
ContentTranslationSynchronizedFieldsConstraintValidator::hasSynchronizedPropertyChanges function core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php Checks whether any synchronized property has changes.
Context::hasContextValue function core/lib/Drupal/Core/Plugin/Context/Context.php Returns whether the context has a value.
Context::hasContextValue function core/lib/Drupal/Component/Plugin/Context/Context.php Returns whether the context has a value.
ContextAwarePluginDefinitionInterface::hasContextDefinition function core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionInterface.php Checks if the plugin defines a particular context.
ContextAwarePluginDefinitionTrait::hasContextDefinition function core/lib/Drupal/Component/Plugin/Definition/ContextAwarePluginDefinitionTrait.php Implements \Drupal\Component\Plugin\Definition\ContextAwarePluginDefinitionInterface::hasContextDefinition().
ContextInterface::hasContextValue function core/lib/Drupal/Component/Plugin/Context/ContextInterface.php Returns whether the context has a value.
ContextTest::providerHasContextValue function core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php Data provider for testHasContextValue.
ContextTest::testHasContextValue function core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php @legacy-covers ::hasContextValue
ContextTypedDataTest::providerHasContextValue function core/tests/Drupal/KernelTests/Core/Plugin/ContextTypedDataTest.php Data provider for testHasContextValue.
ContextTypedDataTest::testHasContextValue function core/tests/Drupal/KernelTests/Core/Plugin/ContextTypedDataTest.php @covers ::hasContextValue[[api-linebreak]]
@dataProvider providerHasContextValue
CoreRecipesTest::providerRecipeHasGenericTest function core/tests/Drupal/Tests/Core/Recipe/CoreRecipesTest.php Data provider for ::testRecipeHasGenericTest().
CoreRecipesTest::testRecipeHasGenericTest function core/tests/Drupal/Tests/Core/Recipe/CoreRecipesTest.php Test that a recipe has a generic test.
Crypt::hashBase64 function core/lib/Drupal/Component/Utility/Crypt.php Calculates a base-64 encoded, URL-safe sha-256 hash.
CryptTest::providerTestHashBase64 function core/tests/Drupal/Tests/Component/Utility/CryptTest.php Provides data for self::testHashBase64().
CryptTest::testHashBase64 function core/tests/Drupal/Tests/Component/Utility/CryptTest.php Tests hash generation.
CsrfTokenGeneratorTest::testGetWithNoHashSalt function core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php Tests the exception thrown when no 'hash_salt' is provided in settings.
Data::$hasNextPage property core/modules/jsonapi/src/JsonApiResource/Data.php Holds a boolean indicating if there is a next page.
Data::hasNextPage function core/modules/jsonapi/src/JsonApiResource/Data.php Checks if there is a next page in the collection.
Data::setHasNextPage function core/modules/jsonapi/src/JsonApiResource/Data.php Sets the has next page flag.
DatabaseStorage::has function core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php Returns whether a given key exists in the store.
DatabaseStorageExpirable::has function core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php Returns whether a given key exists in the store.
Date::hasValidGroupedValue function core/modules/views/src/Plugin/views/filter/Date.php Determines if the given grouped filter entry has a valid value.
DateTimePlus::hasErrors function core/lib/Drupal/Component/Datetime/DateTimePlus.php Detects if there were errors in the processing of this date.
DefaultLazyPluginCollectionTest::testHas function core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php @covers ::has[[api-linebreak]]
DiscoveryInterface::hasDefinition function core/lib/Drupal/Component/Plugin/Discovery/DiscoveryInterface.php Indicates if a specific plugin definition exists.
DiscoveryTrait::hasDefinition function core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php
DiscoveryTraitTest::providerHasDefinition function core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php Data provider for testHasDefinition().
DiscoveryTraitTest::testHasDefinition function core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php @legacy-covers ::hasDefinition
DisplayLink::hasEqualOptions function core/modules/views/src/Plugin/views/area/DisplayLink.php Check if the options of a views display are equal to the current display.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.