WidgetBaseInterface::extractFormValues

public WidgetBaseInterface::extractFormValues(FieldItemListInterface $items, array $form, FormStateInterface $form_state) Extracts field values from submitted form values. Parameters \Drupal\Core\Field\FieldItemListInterface $items: The field values. This parameter is altered by reference to receive the incoming form values. array $form: The form structure where field elements are attached to. This might be a full form structure, or a sub-element of a larger form. \Drupal\Core\Form\FormStateIn

FieldStorageAddForm::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManager File core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 40 Class FieldStorageAddForm Provides a form for the "field storage" add page. Namespace Drupal\field_ui\Form Code protected $entityManager;

Schema::getPrefixInfo

protected Schema::getPrefixInfo($table = 'default', $add_prefix = TRUE) Get information about the table and database name from the prefix. Return value A keyed array with information about the database, table name and prefix. Overrides Schema::getPrefixInfo File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 51 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code protected function getPrefixInfo($table = 'defa

TwigSandboxPolicy::__construct

public TwigSandboxPolicy::__construct() Constructs a new TwigSandboxPolicy object. File core/lib/Drupal/Core/Template/TwigSandboxPolicy.php, line 37 Class TwigSandboxPolicy Default sandbox policy for Twig templates. Namespace Drupal\Core\Template Code public function __construct() { // Allow settings.php to override our default whitelisted classes, methods, // and prefixes. $whitelisted_classes = Settings::get('twig_sandbox_whitelisted_classes', [ // Allow any operations on t

field_purge_field

field_purge_field(FieldConfigInterface $field) Purges a field record from the database. This function assumes all data for the field has already been purged and should only be called by field_purge_batch(). Parameters $field: The field record to purge. Related topics Field API bulk data deletion Cleans up after Field API bulk deletion operations. File core/modules/field/field.purge.inc, line 140 Provides support for field data purge after mass deletion. Code function field_purge_field(Fiel

GeneratedLink::$generatedLink

The HTML string value containing a link. Type: string File core/lib/Drupal/Core/GeneratedLink.php, line 27 Class GeneratedLink Used to return generated links, along with associated cacheability metadata. Namespace Drupal\Core Code protected $generatedLink = '';

ContentUninstallValidator

Validates module uninstall readiness based on existing content entities. Hierarchy class \Drupal\Core\Entity\ContentUninstallValidator implements ModuleUninstallValidatorInterface uses StringTranslationTrait File core/lib/Drupal/Core/Entity/ContentUninstallValidator.php, line 13 Namespace Drupal\Core\Entity Members Name Modifiers Type Description ContentUninstallValidator::$entityManager protected property The entity manager. ContentUninstallValidator::validate publi

language_help

language_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/language/language.module, line 27 Add language handling functionality to Drupal. Code function language_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.language': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Language module allows you to configure the languages used on

RedirectDestinationTrait::setRedirectDestination

public RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination) Sets the redirect destination service. Parameters \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service. Return value $this File core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 61 Class RedirectDestinationTrait Wrapper methods for the Redirect Destination. Namespace Drupal\Core\Routing Code public function setR

_rdf_set_field_rel_attribute

_rdf_set_field_rel_attribute(&$variables) Transforms the field property attribute into a rel attribute. File core/modules/rdf/rdf.module, line 286 Enables semantically enriched output for Drupal sites in the form of RDFa. Code function _rdf_set_field_rel_attribute(&$variables) { // Swap the regular field property attribute and use the rel attribute // instead so that it plays well with the RDFa markup when only a link is // present in the field output, for example in the case of