/** * Presents the feed creation form. * * @return array * A form array as expected by drupal_render(). */ public function createForm(FeedTypeInterface $feeds_feed_type) { $feed = $this->entityManager()->getStorage('feeds_feed')->create(['uid' => $this->currentUser()->id(), 'type' => $feeds_feed_type->id(), 'created' => REQUEST_TIME]); return $this->entityFormBuilder()->getForm($feed); }
/** * Page title callback. */ public function mappingTitle(FeedTypeInterface $feeds_feed_type) { return $this->t('Mappings @label', ['@label' => $feeds_feed_type->label()]); }