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
LocaleConfigManager::hasTranslation function core/modules/locale/src/LocaleConfigManager.php Checks whether a language has configuration translation.
LocaleConfigManagerTest::testHasTranslation function core/modules/locale/tests/src/Kernel/LocaleConfigManagerTest.php Tests hasTranslation().
LockFileValidator::deleteHash function core/modules/package_manager/src/Validator/LockFileValidator.php Deletes the stored lock file hash.
LockFileValidator::getHash function core/modules/package_manager/src/Validator/LockFileValidator.php Returns the XXH64 hash of a file.
LockFileValidator::storeHash function core/modules/package_manager/src/Validator/LockFileValidator.php Stores the XXH64 hash of the active lock file.
LockFileValidatorTest::testNoStoredHash function core/modules/package_manager/tests/src/Kernel/LockFileValidatorTest.php Tests exception when a stored hash of the active lock file is unavailable.
Media::hasSourceFieldChanged function core/modules/media/src/Entity/Media.php Determines if the source field value has changed.
MediaEmbedFilterTestBase::assertHasAttributes function core/modules/media/tests/src/Kernel/MediaEmbedFilterTestBase.php Assert that the SimpleXMLElement object has the given attributes.
MediaLibraryState::getHash function core/modules/media_library/src/MediaLibraryState.php Get the hash for the state object.
MediaLibraryState::hasSlotsAvailable function core/modules/media_library/src/MediaLibraryState.php Determines if additional media items can be selected.
MediaLibraryState::isValidHash function core/modules/media_library/src/MediaLibraryState.php Validate a hash for the state object.
MediaLibraryStateTest::testHashUnaffectedByMediaTypeOrder function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests that hash is unaffected by allowed media type order.
MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests that hash is unaffected by opener parameter order.
MemoryStorage::has function core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php Returns whether a given key exists in the store.
MenuActiveTrail::has function core/lib/Drupal/Core/ProxyClass/Menu/MenuActiveTrail.php Returns whether data exists for this key.
MenuLink::hasTranslation function core/modules/menu_link_content/src/Plugin/migrate/source/MenuLink.php Determines if this menu_link has an i18n translation.
MenuLinkManager::hasDefinition function core/lib/Drupal/Core/Menu/MenuLinkManager.php Indicates if a specific plugin definition exists.
MenuLinkTreeElement::$hasChildren property core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php Whether this link has any children at all.
MetaEventSubscriber::currentUserHasAdminRole function core/modules/jsonapi/tests/modules/jsonapi_test_meta_events/src/EventSubscriber/MetaEventSubscriber.php
MimeTypeMap::hasExtension function core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php
MimeTypeMap::hasMimeType function core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php
MimeTypeMapInterface::hasExtension function core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php Determines if a file extension exists.
MimeTypeMapInterface::hasMimeType function core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php Determines if a MIME type exists.
MimeTypeMapTest::testHasExtension function core/tests/Drupal/Tests/Core/File/MimeType/MimeTypeMapTest.php @covers ::hasExtension[[api-linebreak]]
MimeTypeMapTest::testHasMimeType function core/tests/Drupal/Tests/Core/File/MimeType/MimeTypeMapTest.php @covers ::hasMimeType[[api-linebreak]]
MissingClassDetectionClassLoader::hasMissingClass function core/lib/Drupal/Component/Discovery/MissingClassDetectionClassLoader.php Returns whether there was an attempt to load a missing class.
MockFormBase::hash_submit function core/tests/Drupal/Tests/Core/Form/FormSubmitterTest.php Function used in the mocking process of this test.
ModerationInformation::hasPendingRevision function core/modules/content_moderation/src/ModerationInformation.php Determines if a pending revision exists for the specified entity.
ModerationInformationInterface::hasPendingRevision function core/modules/content_moderation/src/ModerationInformationInterface.php Determines if a pending revision exists for the specified entity.
ModerationInformationTest::testHasPendingRevision function core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @covers ::hasPendingRevision[[api-linebreak]]
ModerationLocaleTest::hasModerationForm function core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php Checks whether the page contains the moderation form.
ModuleHandler::hasImplementations function core/lib/Drupal/Core/Extension/ModuleHandler.php Determines whether there are implementations of a hook.
ModuleHandlerInterface::hasImplementations function core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php Determines whether there are implementations of a hook.
ModuleHandlerTest::assertHasResetHookImplementations function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerTest.php Asserts whether certain hook implementations exist.
ModuleHandlerTest::testHasImplementations function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Tests hasImplementations.
MultipleValueWidgetTest::assertHasFocusByAttribute function core/modules/field/tests/src/FunctionalJavascript/MultipleValueWidgetTest.php Asserts an element specified by an attribute value has focus.
NavigationRenderer::hasLocalTasks function core/modules/navigation/src/NavigationRenderer.php Do we have local tasks that we want to show in the top bar?
NodeGrantDatabaseStorage::$hasNodeGrantsImplementations property core/modules/node/src/NodeGrantDatabaseStorage.php Indicates if any module implements hook_node_grants().
NullStorageExpirable::has function core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php Returns whether a given key exists in the store.
OEmbedIframeControllerTest::providerBadHashParameter function core/modules/media/tests/src/Kernel/OEmbedIframeControllerTest.php Data provider for testBadHashParameter().
OEmbedIframeControllerTest::testBadHashParameter function core/modules/media/tests/src/Kernel/OEmbedIframeControllerTest.php Tests validation of the 'hash' query string parameter.
OperationData::hasAppend function composer/Plugin/Scaffold/Operations/OperationData.php Checks if append path exists.
OperationData::hasDefault function composer/Plugin/Scaffold/Operations/OperationData.php Checks if default path exists.
OperationData::hasPath function composer/Plugin/Scaffold/Operations/OperationData.php Checks if path exists.
OperationData::hasPrepend function composer/Plugin/Scaffold/Operations/OperationData.php Checks if prepend path exists.
OperationFactory::hasContent function composer/Plugin/Scaffold/Operations/OperationFactory.php Checks to see if the specified scaffold file exists and has content.
OptionsFieldUIAllowedValuesTest::assertHasFocusByAttribute function core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php Asserts an element specified by an attribute value has focus.
OptionsWidgetBase::$has_value property core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php Tracks whether the field has a value.
OverridesSectionStorage::hasIntegerId function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Determines if this entity type's ID is stored as an integer.
PagerPluginBase::hasMoreRecords function core/modules/views/src/Plugin/views/pager/PagerPluginBase.php Determine if there are more records available.

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