CodeExplorer setStatics example
$this->renderer =
$r;
} public function getRenderer(): RendererInterface
{ return $this->renderer;
} public function setStatesFromStatics(array
$statics): void
{ $this->renderer->
setStatics($statics);
$this->parser->
setDepthLimit(isset($statics['depth_limit'
]) ?
$statics['depth_limit'
] : 0
);
$this->parser->
clearPlugins();
if (!
isset($statics['plugins'
])) { return;
} $plugins =
[];
foreach ($statics['plugins'
] as $plugin) { public function setCallInfo(array
$info): void
{ parent::
setCallInfo($info);
if (\
in_array('@',
$this->call_info
['modifiers'
], true
)) { $this->
setForcePreRender(true
);
} } public function setStatics(array
$statics): void
{ parent::
setStatics($statics);
if (!
empty($statics['return'
])) { $this->
setForcePreRender(true
);
} } public function setForcePreRender(bool
$force_pre_render): void
{ $this->force_pre_render =
$force_pre_render;
} $this->
setExpand(true
);
$this->
setUseFolder(false
);
} if (\
in_array('@',
$this->call_info
['modifiers'
], true
)) { $this->
setForcePreRender(true
);
} } public function setStatics(array
$statics): void
{ parent::
setStatics($statics);
if (!
empty($statics['expanded'
])) { $this->
setExpand(true
);
} if (!
empty($statics['return'
])) { $this->
setForcePreRender(true
);
} } public function setExpand(bool
$expand): void
{