Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / paragraphs / modules / paragraphs_type_permissions / src / ParagraphsTypePermissions.php
index 40c8fb27598d478e25054bb45e5584db02474ad3..da3ba5f1ff30d2b8e9bf36d61f8b842fdc92e9d8 100644 (file)
@@ -22,21 +22,21 @@ class ParagraphsTypePermissions {
   public function globalPermissions() {
     return array(
       'bypass paragraphs type content access' => array(
-        'title' => $this->t('Bypass paragraphs type content access control'),
-        'description' => $this->t('Is able to administer content for all paragraph types'),
+        'title' => $this->t('Bypass Paragraphs type content access control'),
+        'description' => $this->t('Is able to administer content for all Paragraph types'),
       ),
     );
   }
 
   /**
-   * Returns an array of paragraphs type permissions.
+   * Returns an array of Paragraphs type permissions.
    *
    * @return array
    */
   public function paragraphTypePermissions() {
     $perms = array();
 
-    // Generate paragraph permissions for all paragraphs types.
+    // Generate paragraph permissions for all Paragraphs types.
     foreach (ParagraphsType::loadMultiple() as $type) {
       $perms += $this->buildPermissions($type);
     }
@@ -60,19 +60,19 @@ class ParagraphsTypePermissions {
     return array(
       'view paragraph content ' .$type_id => array(
         'title' => $this->t('%type_name: View content', $type_params),
-        'description' => $this->t('Is able to view paragraphs content of type %type_name', $type_params),
+        'description' => $this->t('Is able to view Paragraphs content of type %type_name', $type_params),
       ),
       'create paragraph content ' . $type_id => array(
         'title' => $this->t('%type_name: Create content', $type_params),
-        'description' => $this->t('Is able to create paragraphs content of type %type_name', $type_params),
+        'description' => $this->t('Is able to create Paragraphs content of type %type_name', $type_params),
       ),
       'update paragraph content ' . $type_id => array(
         'title' => $this->t('%type_name: Edit content', $type_params),
-        'description' => $this->t('Is able to update paragraphs content of type %type_name', $type_params),
+        'description' => $this->t('Is able to update Paragraphs content of type %type_name', $type_params),
       ),
       'delete paragraph content ' . $type_id => array(
         'title' => $this->t('%type_name: Delete content', $type_params),
-        'description' => $this->t('Is able to delete paragraphs content of type %type_name', $type_params),
+        'description' => $this->t('Is able to delete Paragraphs content of type %type_name', $type_params),
       ),
     );
   }