TermInterface::setFormat

public TermInterface::setFormat($format) Sets the text format name for the term's description. Parameters string $format: The term's description text format. Return value $this File core/modules/taxonomy/src/TermInterface.php, line 47 Class TermInterface Provides an interface defining a taxonomy term entity. Namespace Drupal\taxonomy Code public function setFormat($format);

AddCssCommand::__construct

public AddCssCommand::__construct($styles) Constructs an AddCssCommand. Parameters string $styles: A string that contains the styles to be added to the page, including the wrapping <style> tag. File core/lib/Drupal/Core/Ajax/AddCssCommand.php, line 33 Class AddCssCommand An AJAX command for adding css to the page via ajax. Namespace Drupal\Core\Ajax Code public function __construct($styles) { $this->styles = $styles; }

ConfigurableLanguage::$weight

The weight of the language, used in lists of languages. Type: int File core/modules/language/src/Entity/ConfigurableLanguage.php, line 70 Class ConfigurableLanguage Defines the ConfigurableLanguage entity. Namespace Drupal\language\Entity Code protected $weight = 0;

Link::preRenderLink

public static Link::preRenderLink($element) Pre-render callback: Renders a link into #markup. Doing so during pre_render gives modules a chance to alter the link parts. Parameters array $element: A structured array whose keys form the arguments to \Drupal\Core\Utility\LinkGeneratorInterface::generate(): #title: The link text. #url: The URL info either pointing to a route or a non routed path. #options: (optional) An array of options to pass to the link generator. Return value array The p

ImageStyle::flush

public ImageStyle::flush($path = NULL) Flushes cached media for this style. Parameters string $path: (optional) The original image path or URI. If it's supplied, only this image derivative will be flushed. Return value $this Overrides ImageStyleInterface::flush File core/modules/image/src/Entity/ImageStyle.php, line 243 Class ImageStyle Defines an image style configuration entity. Namespace Drupal\image\Entity Code public function flush($path = NULL) { // A specific image path has

ViewFormBase::init

public ViewFormBase::init(FormStateInterface $form_state) Initialize the form state and the entity before the first form build. Overrides EntityForm::init File core/modules/views_ui/src/ViewFormBase.php, line 25 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code public function init(FormStateInterface $form_state) { parent::init($form_state); // @todo Remove the need for this. $form_state->loadInclude('views_ui', 'inc', 'admin'); $form_state->se

FormState::setErrorByName

public FormState::setErrorByName($name, $message = '') Files an error against a form element. When a validation error is detected, the validator calls this method to indicate which element needs to be changed and provide an error message. This causes the Form API to not execute the form submit handlers, and instead to re-display the form to the user with the corresponding elements rendered with an 'error' CSS class (shown as red by default). The standard behavior of this method can be changed i

FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED

Value indicating a field accepts an unlimited number of values. File core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 31 Class FieldStorageDefinitionInterface Defines an interface for entity field storage definitions. Namespace Drupal\Core\Field Code const CARDINALITY_UNLIMITED = -1;

CssCommand

An AJAX command for calling the jQuery css() method. The 'css' command will instruct the client to use the jQuery css() method to apply the CSS arguments to elements matched by the given selector. This command is implemented by Drupal.AjaxCommands.prototype.css() defined in misc/ajax.js. Hierarchy class \Drupal\Core\Ajax\CssCommand implements CommandInterface See also http://docs.jquery.com/CSS/css#properties Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Cor

FieldStorageDefinitionInterface::getName

public FieldStorageDefinitionInterface::getName() Returns the machine name of the field. This defines how the field data is accessed from the entity. For example, if the field name is "foo", then $entity->foo returns its data. Return value string The field name. File core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 42 Class FieldStorageDefinitionInterface Defines an interface for entity field storage definitions. Namespace Drupal\Core\Field Code public function