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().
access_check.settings_tray.block.has_overrides service core/modules/settings_tray/settings_tray.services.yml Drupal\settings_tray\Access\BlockHasOverridesAccessCheck
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.
ActionListBuilder::$hasConfigurableActions property core/modules/action/src/ActionListBuilder.php
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.
AppendOp::existingFileHasData function composer/Plugin/Scaffold/Operations/AppendOp.php Check to see if the append/prepend data has already been applied.
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
@dataProvider providerTestHasAttribute
AttributeTest::testHasClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests checking for class names with the Attribute method.
@covers ::hasClass
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.
BlockHasOverridesAccessCheck class core/modules/settings_tray/src/Access/BlockHasOverridesAccessCheck.php Determines whether the requested block has a 'settings_tray' form.
BlockHasOverridesAccessCheck.php file core/modules/settings_tray/src/Access/BlockHasOverridesAccessCheck.php
BlockHasOverridesAccessCheck::access function core/modules/settings_tray/src/Access/BlockHasOverridesAccessCheck.php Checks access for accessing a block's 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheck class core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php Determines whether the requested block has a 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheck.php file core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php
BlockPluginHasSettingsTrayFormAccessCheck::access function core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php Checks access for accessing a block's 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheck::accessBlockPlugin function core/modules/settings_tray/src/Access/BlockPluginHasSettingsTrayFormAccessCheck.php Checks access for accessing a block plugin's 'settings_tray' form.
BlockPluginHasSettingsTrayFormAccessCheckTest class core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php @coversDefaultClass \Drupal\settings_tray\Access\BlockPluginHasSettingsTrayFormAccessCheck
@group settings_tray
BlockPluginHasSettingsTrayFormAccessCheckTest.php file core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php
BlockPluginHasSettingsTrayFormAccessCheckTest::providerTestAccess function core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php Provides test data for ::testAccess().
BlockPluginHasSettingsTrayFormAccessCheckTest::testAccess function core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php @covers ::access
@covers ::accessBlockPlugin
@dataProvider providerTestAccess
BookOutlineStorage::hasBooks function core/modules/book/src/BookOutlineStorage.php Checks if there are any books.
BookOutlineStorageInterface::hasBooks function core/modules/book/src/BookOutlineStorageInterface.php Checks if there are any books.
BookUninstallValidator::hasBookNodes function core/modules/book/src/BookUninstallValidator.php Determines if there is any book nodes or not.
BookUninstallValidator::hasBookOutlines function core/modules/book/src/BookUninstallValidator.php Checks if there are any books in an outline.
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.

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