You are here

public static function FilefieldSourceInterface::value in FileField Sources 8

Value callback for file field source plugin.

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 assign to the element.

5 methods override FilefieldSourceInterface::value()
Attach::value in src/Plugin/FilefieldSource/Attach.php
Value callback for file field source plugin.
Clipboard::value in src/Plugin/FilefieldSource/Clipboard.php
Value callback for file field source plugin.
Imce::value in src/Plugin/FilefieldSource/Imce.php
Value callback for file field source plugin.
Reference::value in src/Plugin/FilefieldSource/Reference.php
Value callback for file field source plugin.
Remote::value in src/Plugin/FilefieldSource/Remote.php
Value callback for file field source plugin.

File

src/FilefieldSourceInterface.php, line 32

Class

FilefieldSourceInterface
Provides an interface for file field source plugins.

Namespace

Drupal\filefield_sources

Code

public static function value(array &$element, &$input, FormStateInterface $form_state);