function OpmlFeedAdd::create

Same name and namespace in other branches
  1. 8.9.x core/modules/aggregator/src/Form/OpmlFeedAdd.php \Drupal\aggregator\Form\OpmlFeedAdd::create()

Overrides FormBase::create

File

core/modules/aggregator/src/Form/OpmlFeedAdd.php, line 51

Class

OpmlFeedAdd
Imports feeds from OPML.

Namespace

Drupal\aggregator\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager')
        ->getStorage('aggregator_feed'), $container->get('http_client'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.