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
TransactionManagerBase::has function core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php Checks if a named Drupal transaction is active.
TransactionManagerInterface::has function core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php Checks if a named Drupal transaction is active.
TranslatableInterface::hasTranslation function core/lib/Drupal/Core/TypedData/TranslatableInterface.php Checks there is a translation for the given language code.
TranslatableInterface::hasTranslationChanges function core/lib/Drupal/Core/Entity/TranslatableInterface.php Determines if the current translation of the entity has unsaved changes.
TypedConfigManager::hasConfigSchema function core/lib/Drupal/Core/Config/TypedConfigManager.php Checks if the configuration schema with the given config name exists.
TypedConfigManagerInterface::hasConfigSchema function core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php Checks if the configuration schema with the given config name exists.
UrlTest::hasAttribute function core/modules/system/tests/src/Kernel/Common/UrlTest.php Checks for class existence in link.
User::hasPermission function core/modules/user/src/Entity/User.php Checks whether a user has a certain permission.
User::hasRole function core/modules/user/src/Entity/User.php Whether a user has a certain role.
UserAuthTest::testAuthenticateWithCorrectPasswordAndNewPasswordHash function core/modules/user/tests/src/Unit/UserAuthTest.php Tests the authenticate method with a correct password & new password hash.
UserFloodEvent::hasIp function core/modules/user/src/Event/UserFloodEvent.php Is the user flood event associated with an IP?
UserFloodEvent::hasUid function core/modules/user/src/Event/UserFloodEvent.php Is the user flood event associated with a uid?
UserInterface::hasRole function core/modules/user/src/UserInterface.php Whether a user has a certain role.
UserLoginTest::testPasswordRehashOnLogin function core/modules/user/tests/src/Functional/UserLoginTest.php Tests user password is re-hashed upon login after changing $count_log2.
UserPassRehashTest class core/modules/user/tests/src/Kernel/UserPassRehashTest.php Tests user_pass_rehash().
UserPassRehashTest.php file core/modules/user/tests/src/Kernel/UserPassRehashTest.php
UserPassRehashTest::$modules property core/modules/user/tests/src/Kernel/UserPassRehashTest.php Modules to install.
UserPassRehashTest::testUniqueHashNoPasswordValue function core/modules/user/tests/src/Kernel/UserPassRehashTest.php Tests uniqueness of hashes when no password is set.
UserPasswordResetTest::testResetFormHasAutocompleteAttribute function core/modules/user/tests/src/Functional/UserPasswordResetTest.php Test the autocomplete attribute is present.
UserSession::hasPermission function core/lib/Drupal/Core/Session/UserSession.php Checks whether a user has a certain permission.
UserSession::hasRole function core/lib/Drupal/Core/Session/UserSession.php Whether a user has a certain role.
UserSessionTest::testHasPermission function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the has permission method.
UserSessionTest::testHasRole function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the hasRole method.
user_custom_pass_hash_params_test.info.yml file core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.info.yml core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.info.yml
user_custom_pass_hash_params_test.services.yml file core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.services.yml core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.services.yml
user_pass_rehash function core/modules/user/user.module Creates a unique hash value for use in time-dependent per-user URLs.
ViewExecutable::hasFormElements function core/modules/views/src/ViewExecutable.php Determines if this view has form elements.
ViewExecutable::hasUrl function core/modules/views/src/ViewExecutable.php Determines whether you can link to the view or a particular display.
ViewTestBase::helperButtonHasLabel function core/modules/views/tests/src/Functional/ViewTestBase.php Asserts the existence of a button with a certain ID and label.
ViewUI::hasLinkTemplate function core/modules/views_ui/src/ViewUI.php Indicates if a link template exists for a given key.
ViewUI::hasTrustedData function core/modules/views_ui/src/ViewUI.php Gets whether on not the data is trusted.
WorkflowTest::testAddAndHasState function core/modules/workflows/tests/src/Unit/WorkflowTest.php @covers ::addState
@covers ::hasState
WorkflowTypeBase::hasState function core/modules/workflows/src/Plugin/WorkflowTypeBase.php Determines if the workflow has a state with the provided ID.
WorkflowTypeBase::hasTransition function core/modules/workflows/src/Plugin/WorkflowTypeBase.php Determines if a transition exists.
WorkflowTypeBase::hasTransitionFromStateToState function core/modules/workflows/src/Plugin/WorkflowTypeBase.php Determines if a transition from state to state exists.
WorkflowTypeBase::workflowHasData function core/modules/workflows/src/Plugin/WorkflowTypeBase.php Determines if the workflow is being has data associated with it.
WorkflowTypeBase::workflowStateHasData function core/modules/workflows/src/Plugin/WorkflowTypeBase.php Determines if the workflow state has data associated with it.
WorkflowTypeInterface::hasState function core/modules/workflows/src/WorkflowTypeInterface.php Determines if the workflow has a state with the provided ID.
WorkflowTypeInterface::hasTransition function core/modules/workflows/src/WorkflowTypeInterface.php Determines if a transition exists.
WorkflowTypeInterface::hasTransitionFromStateToState function core/modules/workflows/src/WorkflowTypeInterface.php Determines if a transition from state to state exists.
WorkflowTypeInterface::workflowHasData function core/modules/workflows/src/WorkflowTypeInterface.php Determines if the workflow is being has data associated with it.
WorkflowTypeInterface::workflowStateHasData function core/modules/workflows/src/WorkflowTypeInterface.php Determines if the workflow state has data associated with it.
Workspace::hasParent function core/modules/workspaces/src/Entity/Workspace.php Determines whether the workspace has a parent.
WorkspaceInterface::hasParent function core/modules/workspaces/src/WorkspaceInterface.php Determines whether the workspace has a parent.
WorkspaceManager::hasActiveWorkspace function core/modules/workspaces/src/WorkspaceManager.php
WorkspaceManagerInterface::hasActiveWorkspace function core/modules/workspaces/src/WorkspaceManagerInterface.php Determines whether a workspace is active in the current request.
XmlEncoderTest::testDefaultEncoderHasSerializer function core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php @covers ::getBaseEncoder
_block_content_has_reusable_condition function core/modules/block_content/block_content.module Utility function to find nested conditions using the reusable field.
_settings_tray_has_block_overrides function core/modules/settings_tray/settings_tray.module Checks if a block has overrides.
_toolbar_get_subtrees_hash function core/modules/toolbar/toolbar.module Returns the hash of the user-rendered toolbar subtrees and cacheability.

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