public function CheckoutFlowWithPanesBase::getPane in Commerce Core 8.2
Gets a pane with the given ID.
Parameters
string $pane_id: The pane ID.
Return value
\Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane\CheckoutPaneInterface|null The pane, or NULL if not found.
Overrides CheckoutFlowWithPanesInterface::getPane
File
- modules/
checkout/ src/ Plugin/ Commerce/ CheckoutFlow/ CheckoutFlowWithPanesBase.php, line 122
Class
- CheckoutFlowWithPanesBase
- Provides a base checkout flow that uses checkout panes.
Namespace
Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlowCode
public function getPane($pane_id) {
$panes = $this
->getPanes();
return isset($panes[$pane_id]) ? $panes[$pane_id] : NULL;
}