Constructor and Initialisation ------------------------------
14257
public function init() {

		parent::init();

		// Config
		$this->layout = Yii::$app->notify->customLayout[ 'activity' ] ?? $this->layout;

		// Services
		$this->modelService	= Yii::$app->factory->get( 'activityService' );
	}
885064
public function init() {

		parent::init();

		// Config
		$this->layout = CoreGlobalWeb::LAYOUT_PUBLIC;

		// Services
		$this->siteMemberService = Yii::$app->factory->get( 'siteMemberService' );
	}
46178
public function init()
    {
        parent::init();

        // Register our fields
        Event::on(
            Fields::className(),
            Fields::EVENT_REGISTER_FIELD_TYPES,
            function (RegisterComponentTypesEvent $event) {
            	$event->types[] = MatchInputField::class;
            }
        );
    }
345587
private function _initialize()
    {
        if ($this->getInitialized()) {
            return;
        }

        $params = $this->getParameters();
        if ($params !== null) {
            foreach ($params as $param) {
                if ('in' == $param->getName()) {
                    $this->setInputEncoding($param->getValue());
                } else {
                    if ('out' == $param->getName()) {
                        $this->setOutputEncoding($param->getValue());
                    }
                }
            }
        }

        $this->setInitialized(true);
    }
636762
public function init()
    {
        $this->buildStore = b8\Store\Factory::getStore('Build');
        $this->buildService = new BuildService($this->buildStore);
    }
662270
public function init()
	{
		parent::init();

		self::$plugin = $this;

		$requestService = Craft::$app->getRequest();

		$this->setComponents([
            'methods' => Service::class,
        ]);

		$this->_configureTemplateVariable();

		if ($requestService->getIsCpRequest())
		{
			$this->_configureCpResources();
			$this->_configureAssetThumbnails();
			$this->_configureAssetIndexAttributes();
		}
	}
498533
protected function init() {
		$this->_file = new FileGenerator();
		$this->_class = new ClassGenerator();
		
		$this->setupFile();
		$this->setupFileDocBlock();
		
		$this->setupClass();
		$this->setupMethods();
	}
1129742
public function init()
    {
        parent::init();
        $this->layout = $this->module->defaultLayout;
        $this->menu = $this->getSubMenu();
    }
109482
public function init()
    {
        parent::init();
        $this->clientOptions = false;
        if ($this->defaultWrapClass)
            Html::addCssClass($this->wrapOptions, $this->defaultWrapClass);
        if ($this->defaultClass)
            Html::addCssClass($this->options, $this->defaultClass);
    }
612864
public function init()
    {
        parent::init();

        $this->parser = new Jade\Renderer([
          'cachePath' => Yii::getAlias($this->cachePath),
          'lifeTime' => $this->options['lifeTime'],
          'pretty' => $this->options['pretty']
        ]);
    }
1029358
public function init()
    {
        $this->buildStore = Store\Factory::getStore('Build');
        $this->projectStore = Store\Factory::getStore('Project');
        $this->buildService = new BuildService($this->buildStore);
    }
885136
public function init()
    {
        parent::init();

        if (empty($this->htmlOptions['id'])) {
            $this->htmlOptions['id'] = $this->id;
        }

        if ($this->useHtmlData) {
            if (isset($this->options['data'])) {
                $this->items = (array)$this->options['data'];
                unset($this->options['data']);
            }
            if (isset($this->options['spinner'])) {
                $this->spinner = (array)$this->options['spinner'];
                unset($this->options['spinner']);
            }
            foreach ($this->options as $option => $value) {
                $this->htmlOptions['data-' . $option] = $value;
            }
            $this->options = [];
        }

        $this->htmlOptions['data-auto'] = 'false'; // disable auto init

        if (!empty($this->items)) {
            $this->options['data'] = $this->items;
        }
        if (!empty($this->spinner)) {
            $this->options['spinner'] = $this->spinner;
        }

        echo Html::beginTag($this->tagName, $this->htmlOptions) . "\n";
    }
1341721
public function init()
    {
        parent::init();

        self::$plugin = $this;

        $this->_setPluginComponents();
        $this->_setLogging();
        $this->_registerCpRoutes();
        $this->_registerVariables();
        $this->_registerFieldTypes();
        $this->_registerElementTypes();
        $this->_registerIntegrations();
        $this->_registerProjectConfigEventListeners();
    }
30136
public function init()
    {
        if (!isset($this->containerOptions['class'])) {
            Html::addCssClass($this->containerOptions, ['breadcrumbsContainer' => 'breadcrumbs']);
        }

        if (!isset($this->options['class'])) {
            Html::addCssClass($this->options, ['wrapper' => 'nav-wrapper']);
        }

        if ($this->innerContainerOptions !== false && !isset($this->innerContainerOptions['class'])) {
            Html::addCssClass($this->innerContainerOptions, ['innerContainer' => 'col s12']);
        }
    }
1218669
public function init() {

		parent::init();

		$this->modelService		= Yii::$app->controller->modelService;
		$this->galleryService 	= Yii::$app->factory->get( 'galleryService' );
	}
887107
public function init()
    {
        parent::init();
        $this->dataPath = Yii::getAlias($this->dataPath);

        if (Yii::$app instanceof \yii\web\Application) {
            $this->initPanels();
        }
    }
296647
public function init()
    {
        parent::init();

        // add selectors of this view but not selectors of sub-views
        $selectors = $this->getDescendants('SwatViewSelector');
        foreach ($selectors as $selector) {
            if ($selector->getFirstAncestor('SwatView') === $this) {
                $this->addSelector($selector);
            }
        }
    }