public function AggregatorController::feedAdd

Presents the aggregator feed creation form.

Return value

array A form array as expected by drupal_render().

1 string reference to 'AggregatorController::feedAdd'
aggregator.routing.yml in drupal/core/modules/aggregator/aggregator.routing.yml
drupal/core/modules/aggregator/aggregator.routing.yml

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php, line 93
Contains \Drupal\aggregator\Controller\AggregatorController.

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public function feedAdd() {
  $feed = $this->entityManager
    ->getStorageController('aggregator_feed')
    ->create(array(
    'refresh' => 3600,
    'block' => 5,
  ));
  return entity_get_form($feed);
}