FormState::setRequestMethod

public FormState::setRequestMethod($method) Sets the HTTP method used by the request that is building the form. Parameters string $method: Can be any valid HTTP method, such as GET, POST, HEAD, etc. Return value $this Overrides FormStateInterface::setRequestMethod See also \Drupal\Core\Form\FormStateInterface::setMethod() File core/lib/Drupal/Core/Form/FormState.php, line 604 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public functio

FormState::setStorage

public FormState::setStorage(array $storage) Sets the entire set of arbitrary data. Parameters array $storage: The entire set of arbitrary data to store for this form. Return value $this Overrides FormStateInterface::setStorage File core/lib/Drupal/Core/Form/FormState.php, line 727 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setStorage(array $storage) { $this->storage = $storage; return $this; }

CommentManager::$authenticatedCanPostComments

Whether the \Drupal\user\RoleInterface::AUTHENTICATED_ID can post comments. Type: bool File core/modules/comment/src/CommentManager.php, line 46 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $authenticatedCanPostComments;

FormStateDecoratorBase::setValues

public FormStateDecoratorBase::setValues(array $values) Sets the submitted form values. This should be avoided, since these values have been validated already. Use self::setUserInput() instead. Parameters array $values: The multi-dimensional associative array of form values. Return value $this Overrides FormStateInterface::setValues File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 526 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form

DateHelper::hours

public static DateHelper::hours($format = 'H', $required = FALSE) Constructs an array of hours. Parameters string $format: (optional) A date format string that indicates the format to use for the hours. Defaults to 'H'. bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of hours in the selected format. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 351 Class DateHelper Defines Gregorian Calendar date

CheckProvider::setChecks

public CheckProvider::setChecks(RouteCollection $routes) For each route, saves a list of applicable access checks to the route. Parameters \Symfony\Component\Routing\RouteCollection $routes: A collection of routes to apply checks to. Overrides CheckProviderInterface::setChecks File core/lib/Drupal/Core/Access/CheckProvider.php, line 82 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code public function setChecks(RouteCollection $routes) {

FormState::setTriggeringElement

public FormState::setTriggeringElement($triggering_element) Sets the form element that triggered submission. Parameters array|null $triggering_element: The form element that triggered submission, of NULL if there is none. Return value $this Overrides FormStateInterface::setTriggeringElement File core/lib/Drupal/Core/Form/FormState.php, line 812 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setTriggeringElement($triggerin

FormRouteEnhancer::enhance

public FormRouteEnhancer::enhance(array $defaults, Request $request) Update the defaults based on its own data and the request. Parameters array $defaults the getRouteDefaults array.: Request $request the Request instance.: Return value array the modified defaults. Each enhancer MUST return the $defaults but may add or remove values. Overrides RouteEnhancerInterface::enhance File core/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php, line 23 Class FormRouteEnhancer Enhancer to add

CssCollectionOptimizer::$grouper

A CSS asset grouper. Type: \Drupal\Core\Asset\CssCollectionGrouper File core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php, line 17 Class CssCollectionOptimizer Optimizes CSS assets. Namespace Drupal\Core\Asset Code protected $grouper;

FormRouteEnhancer

Enhancer to add a wrapping controller for _form routes. Hierarchy class \Drupal\Core\Routing\Enhancer\FormRouteEnhancer implements RouteEnhancerInterface File core/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php, line 11 Namespace Drupal\Core\Routing\Enhancer Members Name Modifiers Type Description FormRouteEnhancer::applies public function Declares if the route enhancer applies to the given route. Overrides RouteEnhancerInterface::applies FormRouteEnhancer::enh