BookManagerInterface::addFormElements

public BookManagerInterface::addFormElements(array $form, FormStateInterface $form_state, NodeInterface $node, AccountInterface $account, $collapsed = TRUE) Builds the common elements of the book form for the node and outline forms. 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\node\NodeInterface $node: The node whose form is being viewed. \Drupal\Core\Session\AccountIn

Breakpoint::getLabel

public Breakpoint::getLabel() Returns the translated label. Return value string The translated label. Overrides BreakpointInterface::getLabel File core/modules/breakpoint/src/Breakpoint.php, line 18 Class Breakpoint Default object used for breakpoint plugins. Namespace Drupal\breakpoint Code public function getLabel() { return $this->t($this->pluginDefinition['label'], array(), array('context' => 'breakpoint')); }

Tasks::getFormOptions

public Tasks::getFormOptions(array $database) Return driver specific configuration options. Parameters $database: An array of driver specific configuration options. Return value The options form array. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 204 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code public function getFormOptions(array $database) { $form['database'] = array( '#type' => 'textfield', '#title' => t('Datab

EntityTypeInterface::setListBuilderClass

public EntityTypeInterface::setListBuilderClass($class) Sets the list class. Parameters string $class: The list class to use for the operation. Return value $this File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 300 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function setListBuilderClass($class);

FieldItemBase::calculateDependencies

public static FieldItemBase::calculateDependencies(FieldDefinitionInterface $field_definition) Calculates dependencies for field items. Dependencies are saved in the field configuration entity and are used to determine configuration synchronization order. For example, if the field type's default value is a content entity, this method should return an array of dependencies listing the content entities. Parameters \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definitio

Log::findCaller

public Log::findCaller() Determine the routine that called this query. We define "the routine that called this query" as the first entry in the call stack that is not inside the includes/Drupal/Database directory, does not begin with db_ and does have a file (which excludes call_user_func_array(), anonymous functions and similar). That makes the climbing logic very simple, and handles the variable stack depth caused by the query builders. See the debug_backtrace() function. Return value This m

ContactFormEditForm::getEditableConfigNames

protected ContactFormEditForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/modules/contact/src/ContactFormEditForm.php, line 62 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code protected function getEditableConf

Entity::__sleep

public Entity::__sleep() File core/lib/Drupal/Core/Entity/Entity.php, line 605 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function __sleep() { $this->typedData = NULL; return $this->traitSleep(); }

db_drop_table

db_drop_table($table) Drops a table. Parameters $table: The table to be dropped. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call dropTable() on it. For example, $injected_database->schema()->dropTable($table); See also \Drupal\Core\Database\Schema::dropTable() Related topics Schema API API to handle database schemas. File core/includes/database.inc, line

TermTranslationHandler::entityFormSave

TermTranslationHandler::entityFormSave(array $form, FormStateInterface $form_state) Form submission handler for TermTranslationHandler::entityFormAlter(). This handles the save action. See also \Drupal\Core\Entity\EntityForm::build() File core/modules/taxonomy/src/TermTranslationHandler.php, line 29 Class TermTranslationHandler Defines the translation handler for terms. Namespace Drupal\taxonomy Code function entityFormSave(array $form, FormStateInterface $form_state) { if ($this-&g