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
AccessResult::allowedIfHasPermission function core/lib/Drupal/Core/Access/AccessResult.php Creates an access result if the permission is present, neutral otherwise.
AccessResult::allowedIfHasPermissions function core/lib/Drupal/Core/Access/AccessResult.php Creates an 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.
AccountProxy::hasRole function core/lib/Drupal/Core/Session/AccountProxy.php Whether a user has a certain role.
AccountProxyTest::testHasRole function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::hasRole[[api-linebreak]]
AjaxTestFocusFirstForm::selectorHasNothingTabbable function core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestFocusFirstForm.php Callback for testing FocusFirstCommand on a container.
AliasRepository::pathHasMatchingAlias function core/modules/path_alias/src/AliasRepository.php Check if any alias exists starting with $initial_substring.
AliasRepositoryInterface::pathHasMatchingAlias function core/modules/path_alias/src/AliasRepositoryInterface.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.
ArrayElement::hasTranslatableElements function core/lib/Drupal/Core/Config/Schema/ArrayElement.php Determines if there is a translatable value.
AssetGroupSetHashTrait trait core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php Provides a method to generate a normalized hash of a given asset group set.
AssetGroupSetHashTrait.php file core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php
AssetGroupSetHashTrait::generateHash function core/lib/Drupal/Core/Asset/AssetGroupSetHashTrait.php Generates a hash for an array of asset groups.
AssetOptimizationTest::replaceGroupHash function core/tests/Drupal/FunctionalTests/Asset/AssetOptimizationTest.php Replaces the group hash in the given URL.
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.
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.
CalculatedPermissionsItem::hasPermission function core/lib/Drupal/Core/Session/CalculatedPermissionsItem.php Returns whether this item has a given permission.
CalculatedPermissionsItemInterface::hasPermission function core/lib/Drupal/Core/Session/CalculatedPermissionsItemInterface.php Returns whether this item has a given permission.
CalculatedPermissionsItemTest::testHasPermission function core/tests/Drupal/Tests/Core/Session/CalculatedPermissionsItemTest.php Tests the permission check when the admin flag is not set.
CalculatedPermissionsItemTest::testHasPermissionWithAdminFlag function core/tests/Drupal/Tests/Core/Session/CalculatedPermissionsItemTest.php Tests the permission check when the admin flag is set.
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.
ComposerInspectorTest::testPackageDevSnapshotCommitHashIsRemoved function core/modules/package_manager/tests/src/Kernel/ComposerInspectorTest.php Tests that the commit hash of a dev snapshot package is ignored.
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.
ConfigConfigurator::hasTasks function core/lib/Drupal/Core/Recipe/ConfigConfigurator.php Determines if the recipe has any config or config actions to apply.
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.

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