Search for has

  1. Search 7.x for has
  2. Search 8.9.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.
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.
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.
BooleanNormalizer::hasCacheableSupportsMethod function core/modules/serialization/tests/modules/test_datatype_boolean_emoji_normalizer/src/Normalizer/BooleanNormalizer.php
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.
CacheableNormalization::hasNoNestedInstances function core/modules/jsonapi/src/Normalizer/Value/CacheableNormalization.php Ensures that no nested values are instances of this class.
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.
CKEditor5PluginDefinition::hasAdminLibrary function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin has an asset library to load on the admin UI.
CKEditor5PluginDefinition::hasCKEditor5Config function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin has additional values for the CKEditor 5 configuration.
CKEditor5PluginDefinition::hasCKEditor5Plugins function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin loads CKEditor 5 plugin classes.
CKEditor5PluginDefinition::hasConditions function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin has conditions.
CKEditor5PluginDefinition::hasElements function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin allows creating/editing elements and attributes.
CKEditor5PluginDefinition::hasLibrary function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin has an asset library to load.
CKEditor5PluginDefinition::hasToolbarItems function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin has toolbar items.
CKEditor5Test::testEmphasis function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php Ensures that CKEditor italic model is converted to em.
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.
ComplexDataNormalizer::hasCacheableSupportsMethod function core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php
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.
ConfigEntityDenormalizer::hasCacheableSupportsMethod function core/modules/jsonapi/src/Normalizer/ConfigEntityDenormalizer.php
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.

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