Skip to content

Instantly share code, notes, and snippets.

Aaron Crosman acrosman

Block or report user

Report or block acrosman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TaskPluginBase.php
namespace Drupal\sitemanager\Plugin;
use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Config\ConfigFactory;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\TranslationInterface;
View TaskPluginInterface.php
namespace Drupal\sitemanager\Plugin;
use Drupal\Component\Plugin\PluginInspectionInterface;
* Defines an interface for Task plugin plugins.
interface TaskPluginInterface extends PluginInspectionInterface {
View TaskPluginManager.php
namespace Drupal\sitemanager\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
* Provides the Task plugin plugin manager.
View TaskPlugin.php
* @file
* Provides TaskPlugin base class.
namespace Drupal\sitemanager\Annotation;
use Drupal\Component\Annotation\Plugin;
import sys
from os import listdir
from os.path import isfile, join
from os import walk
test_path = sys.argv[1]
files = []
You can’t perform that action at this time.