/**
  * Get Element Permissions
  *
  * @param string $element_type Element Type
  *
  * @return array Element Permissions
  */
 public function getElementPermissions($element_type)
 {
     $element_permissions = $this->getElementTypeConfig($element_type, 'permissions');
     if (!$element_permissions) {
         $element_permissions = $this->getElementPermissions('*');
     }
     if (!$element_permissions) {
         $exception = new HttpMessagesException();
         $exception->withStatus(415)->setMessage(sprintf('Permissions for the `%s` element type is not defined.', $element_type));
         throw $exception;
     }
     return $element_permissions;
 }