rules_api_post-8.x-1.x-dev/rules_api_post.module
rules_api_post.module
<?php
/**
* @file
* Rules API POST Module for Drupal Sites.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function rulesApiPostHelp($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the rules_api_post module.
case 'help.page.rules_api_post':
$output = '<h2>' . t('About') . '</h2>';
$output .= '<p>' . t('This helper module adds a Rules action plugin for POSTing content to a REST API. It\'s a working example of how to replicate content between one or more Drupal sites.') . '</p>';
$output .= '<p>';
$output .= t('Visit the <a href=":project_link">Project page</a> on Drupal.org for more information.', [
':project_link' => 'https://www.drupal.org/project/rules_api_post',
]);
$output .= '</p>';
return $output;
}
}
