Search for has

  1. Search 7.x for has
  2. Search 9.5.x for has
  3. Search 10.3.x for has
  4. Search 11.x for has
  5. Other projects
Title Object type File name Summary
AccessResult::allowedIfHasPermission function core/lib/Drupal/Core/Access/AccessResult.php Creates an allowed access result if the permission is present, neutral otherwise.
AccessResult::allowedIfHasPermissions function core/lib/Drupal/Core/Access/AccessResult.php Creates an allowed access result if the permissions are present, neutral otherwise.
AccessResultTest::providerTestAllowedIfHasPermissions function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php Provides data for the testAllowedIfHasPermissions() method.
AccessResultTest::testAllowedIfHasPermissions function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php Tests allowedIfHasPermissions().
AccountInterface::hasPermission function core/lib/Drupal/Core/Session/AccountInterface.php Checks whether a user has a certain permission.
AccountPermissionsCacheContext::$permissionsHashGenerator property core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php The permissions hash generator.
AccountProxy::hasPermission function core/lib/Drupal/Core/Session/AccountProxy.php Checks whether a user has a certain permission.
AliasRepository::pathHasMatchingAlias function core/lib/Drupal/Core/Path/AliasRepository.php Check if any alias exists starting with $initial_substring.
AliasRepositoryInterface::pathHasMatchingAlias function core/lib/Drupal/Core/Path/AliasRepositoryInterface.php Check if any alias exists starting with $initial_substring.
AliasStorage::pathHasMatchingAlias function core/lib/Drupal/Core/Path/AliasStorage.php Check if any alias exists starting with $initial_substring.
AliasStorageInterface::pathHasMatchingAlias function core/lib/Drupal/Core/Path/AliasStorageInterface.php Check if any alias exists starting with $initial_substring.
AlterableInterface::hasAllTags function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Determines if a given query has all specified tags.
AlterableInterface::hasAnyTag function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Determines if a given query has any specified tag.
AlterableInterface::hasTag function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Determines if a given query has a given tag.
ArgumentPluginBase::hasDefaultArgument function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Determine if the argument is set to provide a default argument.
Attribute::hasAttribute function core/lib/Drupal/Core/Template/Attribute.php Checks if the storage has an attribute with the given name.
Attribute::hasClass function core/lib/Drupal/Core/Template/Attribute.php Checks if the class array has the given CSS class.
AttributeTest::providerTestHasAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Provides tests data for testHasAttribute
AttributeTest::testHasAttribute function core/tests/Drupal/Tests/Core/Template/AttributeTest.php @covers ::hasAttribute[[api-linebreak]]
@dataProvider providerTestHasAttribute
AttributeTest::testHasClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests checking for class names with the Attribute method.
@covers ::hasClass[[api-linebreak]]
BackendChainImplementationUnitTest::testGetHasPropagated function core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php Ensure get values propagation to previous backends.
BackendChainImplementationUnitTest::testGetMultipleHasPropagated function core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php Ensure get multiple values propagation to previous backends.
BaseFieldDefinition::hasCustomStorage function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the storage behavior for this field.
BrowserTestBaseTest::testXpathAsserts function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests legacy field asserts which use xpath directly.
CacheableMetadataCalculationTest::assertCacheableMetadataHasBeenCalculated function core/modules/views/tests/src/Kernel/CacheableMetadataCalculationTest.php Checks whether the view has calculated its cacheability metadata.
CacheableMetadataCalculationTest::cacheableMetadataHasBeenAccessed function core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php Sets a flag to inform tests that cacheable metadata has been accessed.
CacheCollector::has function core/lib/Drupal/Core/Cache/CacheCollector.php Returns whether data exists for this key.
CacheCollectorInterface::has function core/lib/Drupal/Core/Cache/CacheCollectorInterface.php Returns whether data exists for this key.
ChangedFieldItemList::hasAffectingChanges function core/lib/Drupal/Core/Field/ChangedFieldItemList.php Determines whether the field has relevant changes.
Comment::hasParentComment function core/modules/comment/src/Entity/Comment.php Determines if this comment is a reply to another comment.
CommentInterface::hasParentComment function core/modules/comment/src/CommentInterface.php Determines if this comment is a reply to another comment.
ComposerIntegrationTest::getContentHash function core/tests/Drupal/Tests/ComposerIntegrationTest.php Returns the md5 hash of the sorted content of the composer file.
ComposerIntegrationTest::testComposerLockHash function core/tests/Drupal/Tests/ComposerIntegrationTest.php Tests composer.lock content-hash.
Config::hasOverrides function core/lib/Drupal/Core/Config/Config.php Determines if overrides are applied to a key for this configuration object.
ConfigEntityBase::hasTrustedData function core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php Gets whether on not the data is trusted.
ConfigEntityDependency::hasDependency function core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php Determines if the entity is dependent on extensions or entities.
ConfigEntityInterface::hasTrustedData function core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php Gets whether on not the data is trusted.
ConfigEntityStorage::has function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Determines if this entity already exists in storage.
ConfigEntityStorage::hasData function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Determines if the storage contains any data.
ConfigEntityStorageTest::testHasData function core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStorageTest.php Tests the hasData() method for config entity storage.
ConfigImporter::hasUnprocessedConfigurationChanges function core/lib/Drupal/Core/Config/ConfigImporter.php Checks if there are any unprocessed configuration changes.
ConfirmClassyCopiesTest::getClassyHash function core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php Gets the hash of a Classy asset.
ConfirmClassyCopiesTest::testClassyHashes function core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php Tests Classy's assets have not been altered.
Container::has function core/lib/Drupal/Component/DependencyInjection/Container.php
Container::hasParameter function core/lib/Drupal/Component/DependencyInjection/Container.php
ContainerTest::testHas function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::has() works properly.
ContainerTest::testHasForAliasedService function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::has() for aliased services works properly.
ContainerTest::testHasParameter function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Tests that Container::hasParameter() works properly.
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.

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