FieldItemBase::getEntity

public FieldItemBase::getEntity() Gets the entity that field belongs to. Return value \Drupal\Core\Entity\FieldableEntityInterface The entity object. Overrides FieldItemInterface::getEntity File core/lib/Drupal/Core/Field/FieldItemBase.php, line 60 Class FieldItemBase An entity field item. Namespace Drupal\Core\Field Code public function getEntity() { return $this->getParent()->getEntity(); }

Schema::fieldExists

public Schema::fieldExists($table, $column) Check if a column exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the column. Return value TRUE if the given column exists, otherwise FALSE. File core/lib/Drupal/Core/Database/Schema.php, line 244 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function fieldExists($table, $column) { $condition = $this->buildTabl

UserPasswordResetForm::buildForm

public UserPasswordResetForm::buildForm(array $form, FormStateInterface $form_state, AccountInterface $user = NULL, $expiration_date = NULL, $timestamp = NULL, $hash = NULL) Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Session\AccountInterface $user: User requesting reset. string $expiration_date: Formatted expiration date for the login link, or NULL if the link d

ConfigurableLanguageManager::$languageTypes

Local cache for language type configuration data. Type: array File core/modules/language/src/ConfigurableLanguageManager.php, line 62 Class ConfigurableLanguageManager Overrides default LanguageManager to provide configured languages. Namespace Drupal\language Code protected $languageTypes;

Breadcrumb::toRenderable

public Breadcrumb::toRenderable() Returns a render array representation of the object. Return value mixed[] A render array. Overrides RenderableInterface::toRenderable File core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php, line 71 Class Breadcrumb Used to return generated breadcrumbs with associated cacheability metadata. Namespace Drupal\Core\Breadcrumb Code public function toRenderable() { $build = [ '#cache' => [ 'contexts' => $this->cacheContexts, 'tags' =

PoStreamWriter::writeItem

public PoStreamWriter::writeItem(PoItem $item) Writes the given item. Parameters PoItem $item: One specific item to write. Overrides PoWriterInterface::writeItem File core/lib/Drupal/Component/Gettext/PoStreamWriter.php, line 123 Class PoStreamWriter Defines a Gettext PO stream writer. Namespace Drupal\Component\Gettext Code public function writeItem(PoItem $item) { $this->write($item); }

ConfigurableLanguageManager::reset

public ConfigurableLanguageManager::reset($type = NULL) Resets the given language type or all types if none specified. Parameters string|null $type: (optional) The language type to reset as a string, e.g., LanguageInterface::TYPE_INTERFACE, or NULL to reset all language types. Defaults to NULL. Return value \Drupal\Core\Language\LanguageManagerInterface The language manager that has been reset. Overrides LanguageManager::reset File core/modules/language/src/ConfigurableLanguageManager.php, li

LanguageNegotiator::getNegotiationMethods

public LanguageNegotiator::getNegotiationMethods($type = NULL) Returns the language negotiation methods enabled for a language type. Parameters string $type: (optional) The language type. If no type is specified all the method definitions are returned. Return value array[] An array of language negotiation method definitions keyed by method id. Overrides LanguageNegotiatorInterface::getNegotiationMethods File core/modules/language/src/LanguageNegotiator.php, line 196 Class LanguageNegotiat

RecursiveContextualValidator::$context

The execution context. Type: \Symfony\Component\Validator\Context\ExecutionContextInterface File core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 37 Class RecursiveContextualValidator Defines a recursive contextual validator for Typed Data. Namespace Drupal\Core\TypedData\Validation Code protected $context;

FieldStorageConfigInterface::getTypeProvider

public FieldStorageConfigInterface::getTypeProvider() Returns the name of the module providing the field type. Return value string The name of the module that provides the field type. File core/modules/field/src/FieldStorageConfigInterface.php, line 27 Class FieldStorageConfigInterface Provides an interface defining a field storage entity. Namespace Drupal\field Code public function getTypeProvider();