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 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
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
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
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.
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
@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
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.
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.

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