Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / modules / contrib / paragraphs / src / ParagraphsTypeInterface.php
1 <?php
2
3 namespace Drupal\paragraphs;
4
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
6
7 /**
8  * Provides an interface defining a ParagraphsType entity.
9  */
10 interface ParagraphsTypeInterface extends ConfigEntityInterface {
11
12   /**
13    * Returns the ordered collection of feature plugin instances.
14    *
15    * @return \Drupal\paragraphs\ParagraphsBehaviorCollection
16    *   The behavior plugins collection.
17    */
18   public function getBehaviorPlugins();
19
20   /**
21    * Returns an individual plugin instance.
22    *
23    * @param string $instance_id
24    *   The ID of a behavior plugin instance to return.
25    *
26    * @return \Drupal\paragraphs\ParagraphsBehaviorInterface
27    *   A specific feature plugin instance.
28    */
29   public function getBehaviorPlugin($instance_id);
30
31   /**
32    * Retrieves all the enabled plugins.
33    *
34    * @return \Drupal\paragraphs\ParagraphsBehaviorInterface[]
35    *   Array of the enabled plugins as instances.
36    */
37   public function getEnabledBehaviorPlugins();
38
39   /**
40    * Returns the icon file entity.
41    *
42    * @return \Drupal\file\FileInterface|bool
43    *   The icon's file entity or FALSE if icon does not exist.
44    */
45   public function getIconFile();
46
47   /**
48    * Returns the icon's URL.
49    *
50    * @return string|bool
51    *   The icon's URL or FALSE if icon does not exits.
52    */
53   public function getIconUrl();
54
55   /**
56    * Gets the description.
57    *
58    * @return string
59    *   The description of this paragraph type.
60    */
61   public function getDescription();
62
63   /**
64    * Returns TRUE if $plugin_id is enabled on this ParagraphType Entity.
65    *
66    * @param string $plugin_id
67    *   The plugin id, as specified in the plugin annotation details.
68    *
69    * @return bool
70    *   TRUE if the plugin is enabled, FALSE otherwise.
71    */
72   public function hasEnabledBehaviorPlugin($plugin_id);
73
74 }