Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * Page title callback.
  */
 public function mappingTitle(FeedTypeInterface $feeds_feed_type)
 {
     return $this->t('Mappings @label', ['@label' => $feeds_feed_type->label()]);
 }