forum_form_taxonomy_term_form_alter

forum_form_taxonomy_term_form_alter(&$form, FormStateInterface $form_state, $form_id) Implements hook_form_FORM_ID_alter() for \Drupal\taxonomy\TermForm. File core/modules/forum/forum.module, line 310 Provides discussion forums. Code function forum_form_taxonomy_term_form_alter(&$form, FormStateInterface $form_state, $form_id) { $vid = \Drupal::config('forum.settings')->get('vocabulary'); if (isset($form['vid']['#value']) && $form['vid']['#value'] == $vid) { // Hide

RenderElement

Defines a render element plugin annotation object. See \Drupal\Core\Render\Element\ElementInterface for more information about render element plugins. Plugin Namespace: Element For a working example, see \Drupal\Core\Render\Element\Link. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\Core\Render\Annotation\RenderElement See also \Drupal\Core\Render\ElementInfoManager \Drupal\Core\Render\Ele

ViewExecutable::postExecute

public ViewExecutable::postExecute() Unsets the current view, mostly. File core/modules/views/src/ViewExecutable.php, line 1685 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function postExecute() { // unset current view so we can be properly destructed later on. // Return the previous value in case we're an attachment. if ($this->old_view) { $old_view = array_pop($this->old_view); } views_set_current_view(isset($old_view) ?

NullGenerator::processRoute

protected NullGenerator::processRoute($name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) Passes the route to the processor manager for altering before compilation. Parameters string $name: The route name. \Symfony\Component\Routing\Route $route: The route object to process. array $parameters: An array of parameters to be passed to the route compiler. \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) Object to collect route process

_node_mass_update_helper

_node_mass_update_helper(NodeInterface $node, array $updates, $langcode = NULL) Updates individual nodes when fewer than 10 are queued. Parameters \Drupal\node\NodeInterface $node: A node to update. array $updates: Associative array of updates. string $langcode: (optional) The language updates should be applied to. If none is specified all available languages are processed. Return value \Drupal\node\NodeInterface An updated node object. See also node_mass_update() File core/modules/node/node

ViewUI::enforceIsNew

public ViewUI::enforceIsNew($value = TRUE) Enforces an entity to be new. Allows migrations to create entities with pre-defined IDs by forcing the entity to be new before saving. Parameters bool $value: (optional) Whether the entity should be forced to be new. Defaults to TRUE. Return value $this Overrides EntityInterface::enforceIsNew See also \Drupal\Core\Entity\EntityInterface::isNew() File core/modules/views_ui/src/ViewUI.php, line 1027 Class ViewUI Stores UI related temporary settin

ConfigSync::finishBatch

public static ConfigSync::finishBatch($success, $results, $operations) Finish batch. This function is a static function to avoid serializing the ConfigSync object unnecessarily. File core/modules/config/src/Form/ConfigSync.php, line 392 Class ConfigSync Construct the storage changes in a configuration synchronization form. Namespace Drupal\config\Form Code public static function finishBatch($success, $results, $operations) { if ($success) { if (!empty($results['errors'])) {

RouteCompiler

Compiler to generate derived information from a Route necessary for matching. Hierarchy class \Symfony\Component\Routing\RouteCompiler implements \Symfony\Component\Routing\RouteCompilerInterface class \Drupal\Core\Routing\RouteCompiler implements RouteCompilerInterface File core/lib/Drupal/Core/Routing/RouteCompiler.php, line 12 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RouteCompiler::compile public static function Compiles the current route

LoggingForm::buildForm

public LoggingForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides ConfigFormBase::buildForm File core/modules/system/src/Form/LoggingForm.php, line 30 Class LoggingForm Configure logging settings for this site. Namespace Drupal\system\Form Code pub

FieldConfig::loadByName

public static FieldConfig::loadByName($entity_type_id, $bundle, $field_name) Loads a field config entity based on the entity type and field name. Parameters string $entity_type_id: ID of the entity type. string $bundle: Bundle name. string $field_name: Name of the field. Return value static The field config entity if one exists for the provided field name, otherwise NULL. File core/modules/field/src/Entity/FieldConfig.php, line 340 Class FieldConfig Defines the Field entity. Namespace