Loading src/Plugin/Action/GroupUpdateContent.php 0 → 100644 +32 −0 Original line number Diff line number Diff line <?php namespace Drupal\group_action\Plugin\Action; /** * Action plugin for updating content of a group. * * @Action( * id = "group_update_content", * label = "Group: update content", * type = "node" * ) * * @TODO, support multiple entity types once core is fixed. * @see https://www.drupal.org/node/2011038 */ class GroupUpdateContent extends GroupActionBase { /** * {@inheritdoc} */ public function defaultConfiguration() { return [ 'operation' => 'update', 'content_plugin' => '', 'group_id' => '', 'entity_id' => '', 'values' => '', ]; } } src/Plugin/Action/GroupUpdateMember.php 0 → 100644 +29 −0 Original line number Diff line number Diff line <?php namespace Drupal\group_action\Plugin\Action; /** * Action plugin for updating an existing membership. * * @Action( * id = "group_update_member", * label = "Group: update user membership", * type = "user" * ) */ class GroupUpdateMember extends GroupUpdateContent { /** * {@inheritdoc} */ public function defaultConfiguration() { return [ 'operation' => 'update', 'content_plugin' => 'group_membership', 'group_id' => '', 'entity_id' => '', 'values' => '', ]; } } Loading
src/Plugin/Action/GroupUpdateContent.php 0 → 100644 +32 −0 Original line number Diff line number Diff line <?php namespace Drupal\group_action\Plugin\Action; /** * Action plugin for updating content of a group. * * @Action( * id = "group_update_content", * label = "Group: update content", * type = "node" * ) * * @TODO, support multiple entity types once core is fixed. * @see https://www.drupal.org/node/2011038 */ class GroupUpdateContent extends GroupActionBase { /** * {@inheritdoc} */ public function defaultConfiguration() { return [ 'operation' => 'update', 'content_plugin' => '', 'group_id' => '', 'entity_id' => '', 'values' => '', ]; } }
src/Plugin/Action/GroupUpdateMember.php 0 → 100644 +29 −0 Original line number Diff line number Diff line <?php namespace Drupal\group_action\Plugin\Action; /** * Action plugin for updating an existing membership. * * @Action( * id = "group_update_member", * label = "Group: update user membership", * type = "user" * ) */ class GroupUpdateMember extends GroupUpdateContent { /** * {@inheritdoc} */ public function defaultConfiguration() { return [ 'operation' => 'update', 'content_plugin' => 'group_membership', 'group_id' => '', 'entity_id' => '', 'values' => '', ]; } }