ManyToOneHelper::addTable

public ManyToOneHelper::addTable($join = NULL, $alias = NULL) Add a table to the query. This is an advanced concept; not only does it add a new instance of the table, but it follows the relationship path all the way down to the relationship link point and adds *that* as a new relationship and then adds the table to the relationship, if necessary. File core/modules/views/src/ManyToOneHelper.php, line 63 Class ManyToOneHelper This many to one helper object is used on both arguments and filte

ManyToOneHelper::addFilter

public ManyToOneHelper::addFilter() File core/modules/views/src/ManyToOneHelper.php, line 255 Class ManyToOneHelper This many to one helper object is used on both arguments and filters. Namespace Drupal\views Code public function addFilter() { if (empty($this->handler->value)) { return; } $this->handler->ensureMyTable(); // Shorten some variables: $field = $this->getField(); $options = $this->handler->options; $operator = $this->handler->op

ManyToOneHelper

This many to one helper object is used on both arguments and filters. @todo This requires extensive documentation on how this class is to be used. For now, look at the arguments and filters that use it. Lots of stuff is just pass-through but there are definitely some interesting areas where they interact. Any handler that uses this can have the following possibly additional definition terms: numeric: If true, treat this field as numeric, using %d instead of %s in queries. Hierarchy class \Dr

ManagedFile::valueCallback

public static ManagedFile::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to

ManagedFile::validateManagedFile

public static ManagedFile::validateManagedFile(&$element, FormStateInterface $form_state, &$complete_form) Render API callback: Validates the managed_file element. File core/modules/file/src/Element/ManagedFile.php, line 396 Class ManagedFile Provides an AJAX/progress aware widget for uploading and saving a file. Namespace Drupal\file\Element Code public static function validateManagedFile(&$element, FormStateInterface $form_state, &$complete_form) { // If referencing

ManagedFile::uploadAjaxCallback

public static ManagedFile::uploadAjaxCallback(&$form, FormStateInterface &$form_state, Request $request) #ajax callback for managed_file upload forms. This ajax callback takes care of the following things: Ensures that broken requests due to too big files are caught. Adds a class to the response to be able to highlight in the UI, that a new file got uploaded. Parameters array $form: The build form. \Drupal\Core\Form\FormStateInterface $form_state: The form state. \Symfony\Component\H

ManagedFile::processManagedFile

public static ManagedFile::processManagedFile(&$element, FormStateInterface $form_state, &$complete_form) Render API callback: Expands the managed_file element type. Expands the file type to include Upload and Remove buttons, as well as support for a default value. File core/modules/file/src/Element/ManagedFile.php, line 206 Class ManagedFile Provides an AJAX/progress aware widget for uploading and saving a file. Namespace Drupal\file\Element Code public static function process

ManagedFile::preRenderManagedFile

public static ManagedFile::preRenderManagedFile($element) Render API callback: Hides display of the upload or remove controls. Upload controls are hidden when a file is already uploaded. Remove controls are hidden when there is no file attached. Controls are hidden here instead of in \Drupal\file\Element\ManagedFile::processManagedFile(), because #access for these buttons depends on the managed_file element's #value. See the documentation of \Drupal\Core\Form\FormBuilderInterface::doBuildForm()

ManagedFile::getInfo

public ManagedFile::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/file/src/Element/ManagedFile.php, line 27 Class ManagedFile Provides an AJAX/progress aware widget for uploading and saving a file. Namespace Drupal\fil

ManagedFile::fileUsage

protected static ManagedFile::fileUsage() Wraps the file usage service. Return value \Drupal\file\FileUsage\FileUsageInterface File core/modules/file/src/Element/ManagedFile.php, line 440 Class ManagedFile Provides an AJAX/progress aware widget for uploading and saving a file. Namespace Drupal\file\Element Code protected static function fileUsage() { return \Drupal::service('file.usage'); }