/** * Instantiates this class * */ public function __construct(array $config = []) { parent::__construct(); $this->config->set($config); $this->config->set('id', 'youtube_video'); $this->config->set('name', 'Youtube Video'); $this->config->set('identifier_field', 'id'); }
/** * Instantiates this class * */ public function __construct(array $config = []) { parent::__construct(); $this->config->set($config); $this->config->set('id', 'soundcloud_playlist'); $this->config->set('name', 'Soundcloud Playlist'); $this->config->set('identifier_field', 'id'); }
/** * Instantiates this class * */ public function __construct(array $config = []) { parent::__construct(); $this->config->set($config); $this->config->set('id', 'google_map'); $this->config->set('name', 'Google Map'); $this->config->set('identifier_field', 'url'); }
/** * Instantiates this class * */ public function __construct(array $config = []) { parent::__construct(); // Defaults $this->config->set('name', 'Post'); $this->config->set('labels', ['identifier_field' => 'Select Post', 'missing_identifier_message' => 'You need to select a Post']); $this->config->set('types', ['post']); $this->config->set($config); $this->config->set('id', 'types'); $this->config->set('identifier_field', 'id'); }