EntityFormMode

Defines the entity form mode configuration entity class. Form modes allow entity forms to be displayed differently depending on the context. For instance, the user entity form can be displayed with a set of fields on the 'profile' page (user edit page) and with a different set of fields (or settings) on the user registration page. Modules taking part in the display of the entity form (notably the Field API) can adjust their behavior depending on the requested form mode. An additional 'default'

ImageStyleDeleteForm::getDescription

public ImageStyleDeleteForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides EntityConfirmFormBase::getDescription File core/modules/image/src/Form/ImageStyleDeleteForm.php, line 29 Class ImageStyleDeleteForm Creates a form to delete an image style. Namespace Drupal\image\Form Code public function getDescription() { if (count($this->getReplacementOptions()) > 1) { return $this->t('If this style is

BreakLockForm

Builds the form to break the lock of an edited view. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\views_ui\Form\BreakLockForm File core/mod

RdfMapping::postSave

public RdfMapping::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool

ForumController

Controller routines for forum routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\forum\Controller\ForumController File core/modules/forum/src/Controller/ForumController.php, line 22 Namespace Drupal\forum\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected pr

Schema::changeField

public Schema::changeField($table, $field, $field_new, $spec, $new_keys = array()) Change a field definition. IMPORTANT NOTE: To maintain database portability, you have to explicitly recreate all indices and primary keys that are using the changed field. That means that you have to drop all affected keys and indexes with db_drop_{primary_key,unique_key,index}() before calling db_change_field(). To recreate the keys and indices, pass the key definitions as the optional $keys_new argument directl

Query

The SQL storage entity query class. Hierarchy class \Drupal\Core\Entity\Query\QueryBase implements QueryInterfaceclass \Drupal\Core\Entity\Query\Sql\Query implements QueryInterface File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 15 Namespace Drupal\Core\Entity\Query\Sql Members Name Modifiers Type Description Query::$connection protected property Query::$sqlFields protected property An array of fields keyed by the field alias. Query::$sqlGroupBy p

Diff::lcs

public Diff::lcs() Compute the length of the Longest Common Subsequence (LCS). This is mostly for diagnostic purposed. Return value int The length of the LCS. File core/lib/Drupal/Component/Diff/Diff.php, line 80 Class Diff Class representing a 'diff' between two sequences of strings. @todo document @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function lcs() { $lcs = 0; foreach ($this->edits as $edit) { if ($edit->type == 'copy') { $lcs

ViewAjaxController::ajaxView

public ViewAjaxController::ajaxView(Request $request) Loads and renders a view via AJAX. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. Return value \Drupal\views\Ajax\ViewAjaxResponse The view response as ajax response. Throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException Thrown when the view was not found. File core/modules/views/src/Controller/ViewAjaxController.php, line 112 Class ViewAjaxController Defines a controller to

FilterFormatEditForm

Provides a form for adding a filter format. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\filter\FilterFormatFormBaseclass \Drupal\filter\FilterFormatEditForm File core/modules/filter/src/FilterFormatEditForm.php, line