OptimizedPhpArrayDumper

OptimizedPhpArrayDumper dumps a service container as a serialized PHP array. The format of this dumper is very similar to the internal structure of the ContainerBuilder, but based on PHP arrays and \stdClass objects instead of rich value objects for performance reasons. By removing the abstraction and optimizing some cases like deep collections, fewer classes need to be loaded, fewer function calls need to be executed and fewer run time checks need to be made. In addition to that, this containe

OptGroup::flattenOptions

public static OptGroup::flattenOptions(array $array) Allows PHP array processing of multiple select options with the same value. Used for form select elements which need to validate HTML option groups and multiple options which may return the same value. Associative PHP arrays cannot handle these structures, since they share a common key. Parameters array $array: The form options array to process. Return value array An array with all hierarchical elements flattened to a single array. File cor

OptGroup::doFlattenOptions

protected static OptGroup::doFlattenOptions(array $array, array &$options) Iterates over an array building a flat array with duplicate keys removed. This function also handles cases where objects are passed as array values. Parameters array $array: The form options array to process. array $options: The array of flattened options. File core/lib/Drupal/Core/Form/OptGroup.php, line 39 Class OptGroup Provides helpers for HTML option groups. Namespace Drupal\Core\Form Code protected st

OptGroup

Provides helpers for HTML option groups. Hierarchy class \Drupal\Core\Form\OptGroup File core/lib/Drupal/Core/Form/OptGroup.php, line 8 Namespace Drupal\Core\Form Members Name Modifiers Type Description OptGroup::doFlattenOptions protected static function Iterates over an array building a flat array with duplicate keys removed. OptGroup::flattenOptions public static function Allows PHP array processing of multiple select options with the same value.

OpmlFeedAdd::__construct

public OpmlFeedAdd::__construct(FeedStorageInterface $feed_storage, ClientInterface $http_client) Constructs a database object. Parameters \Drupal\aggregator\FeedStorageInterface $feed_storage: The feed storage. \GuzzleHttp\ClientInterface $http_client: The Guzzle HTTP client. File core/modules/aggregator/src/Form/OpmlFeedAdd.php, line 40 Class OpmlFeedAdd Imports feeds from OPML. Namespace Drupal\aggregator\Form Code public function __construct(FeedStorageInterface $feed_storage, Cli

OpmlFeedAdd::validateForm

public OpmlFeedAdd::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/aggregator/src/Form/OpmlFeedAdd.php, line 100 Class OpmlFeedAdd Imports feeds from OPML. Namespace Drupal\aggregator\Form Code public function validateForm(array &

OpmlFeedAdd::submitForm

public OpmlFeedAdd::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/aggregator/src/Form/OpmlFeedAdd.php, line 111 Class OpmlFeedAdd Imports feeds from OPML. Namespace Drupal\aggregator\Form Code public function submitForm(array &

OpmlFeedAdd::parseOpml

protected OpmlFeedAdd::parseOpml($opml) Parses an OPML file. Feeds are recognized as <outline> elements with the attributes "text" and "xmlurl" set. @todo Move this to a parser in https://www.drupal.org/node/1963540. Parameters string $opml: The complete contents of an OPML document. Return value array An array of feeds, each an associative array with a "title" and a "url" element, or NULL if the OPML document failed to be parsed. An empty array will be returned if the document is valid

OpmlFeedAdd::getFormId

public OpmlFeedAdd::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/aggregator/src/Form/OpmlFeedAdd.php, line 58 Class OpmlFeedAdd Imports feeds from OPML. Namespace Drupal\aggregator\Form Code public function getFormId() { return 'aggregator_opml_add'; }

OpmlFeedAdd::create

public static OpmlFeedAdd::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service cont